<fieldset class="classFieldSet">
    <legend><?php echo CHtml::encode("Tổng thu nhập");?></legend>
    <table>
        <tr>
            <td><?php echo CHtml::encode("Số lớp được giao");?></td>
            <td><?php echo $success_num;?><?php echo CHtml::encode(" lớp");?></td>
        </tr>
        <tr>
            <td><?php echo CHtml::encode("Số lớp bị lỗi");?></td>
            <td><?php echo $fail_num;?><?php echo CHtml::encode(" lớp");?></td>
        </tr>
        <tr>
            <td><?php echo CHtml::encode("Tiền thu vào");?></td>
            <td><?php echo $success_income;?><?php echo CHtml::encode(" VNĐ");?></td>
        </tr>
        <tr>
            <td><?php echo CHtml::encode("Tiền hoàn trả");?></td>
            <td><?php echo $fail_income;?><?php echo CHtml::encode(" VNĐ");?></td>
        </tr>
</table>
</fieldset>

<b><?php
    if($success_num > 0) {
echo CHtml::encode("CÁC LỚP THÀNH CÔNG");?></b>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'intropage-grid1',
	'dataProvider'=>$provider1,
	'columns'=>array(
		'id',
		'id_course',
		'tutor_name',
		'salary',
		'createDate',
                array (
                        'class'=>'CButtonColumn',
                        'template'=>'{view}',
                    )
	),
)); }?>
<b><?php
    if($fail_num > 0) {
echo CHtml::encode("CÁC LỚP LỖI");?></b>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'intropage-grid2',
	'dataProvider'=>$provider2,
	'columns'=>array(
		'id',
		'id_course',
		'tutor_name',
		'salary',
		'createDate',
                'failDate',
                'reason',
                array (
                    'class'=>'CButtonColumn',
                    'template'=>'{view}',
                )
	),
)); }?>
